package com.practice.share.model.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "`replay_message`")
public class ReplayMessage {
    @Id
    @Column(name = "`replay_id`")
    private Integer replayId;

    @Column(name = "`comment_id`")
    private Integer commentId;

    @Column(name = "`user_id`")
    private Integer userId;

    @Column(name = "`replay_content`")
    private String replayContent;

    @Column(name = "`create_time`")
    private Date createTime;

    private Integer replayUserId;

    private UserMessage replayUserMessage;

    private UserMessage commentUserMessage;


}